{\rtf1\ansi\ansicpg936\cocoartf1138\cocoasubrtf230
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;\red63\green110\blue116;\red46\green13\blue110;\red28\green0\blue207;
\red38\green71\blue75;\red170\green13\blue145;\red92\green38\blue153;\red196\green26\blue22;\red100\green56\blue32;
\red0\green116\blue0;}
\paperw11900\paperh16840\margl1440\margr1440\vieww19080\viewh7700\viewkind0
\deftab640
\pard\tx640\pardeftab640\pardirnatural

\f0\fs28 \AppleTypeServices\AppleTypeServicesF1441793 \cf0 \CocoaLigature0     \cf2 QQView\cf0  *qqView = [[\cf2 QQView\cf0  \cf3 alloc\cf0 ] \cf3 initWithFrame\cf0 :\cf3 CGRectMake\cf0 (\cf4 0.0\cf0 , \cf4 0.0\cf0 , \cf4 320.0\cf0 , \cf4 300.0\cf0 )];\
    [qqView \cf5 setDataSource\cf0 :\cf6 self\cf0 ];\
    [qqView \cf5 setDelegate\cf0 :\cf6 self\cf0 ];\
    [\cf6 self\cf0 .\cf7 view\cf0  \cf3 addSubview\cf0 :qqView];\
    [qqView \cf3 release\cf0 ];\
\
\
// Delegate & DataSource methods\
- (\cf7 NSInteger\cf0 )numberOfSectionsInQQView:(\cf2 QQView\cf0  *)qqView\
\{\
    \cf6 return\cf0  \cf4 8\cf0 ;\
\}\
\
- (\cf7 NSInteger\cf0 )qqView:(\cf2 QQView\cf0  *)qqView numberOfRowsInSection:(\cf7 NSInteger\cf0 )section flag:(\cf6 BOOL\cf0 )flag\
\{   \
    \cf6 if\cf0 (flag)\
    \{   \
        \cf6 return\cf0  \cf4 5\cf0 ;\
    \}\
    \cf6 else\cf0 \
    \{   \
        \cf6 return\cf0  \cf4 0\cf0 ;\
    \}\
\}\
\
- (\cf7 UIView\cf0  *)qqView:(\cf2 QQView\cf0  *)qqView viewForHeaderInSection:(\cf7 NSInteger\cf0 )section\
\{\
    \cf7 UIView\cf0  *headerView = [[[\cf7 UIView\cf0  \cf3 alloc\cf0 ] \cf3 initWithFrame\cf0 :\cf3 CGRectMake\cf0 (\cf4 0.0\cf0 , \cf4 0.0\cf0 , \cf4 320\cf0 , \cf4 30\cf0 )] \cf3 autorelease\cf0 ];\
    [headerView \cf3 setBackgroundColor\cf0 :[\cf7 UIColor\cf0  \cf3 clearColor\cf0 ]];\
    \
    \cf7 UILabel\cf0  *label = [[\cf7 UILabel\cf0  \cf3 alloc\cf0 ] \cf3 initWithFrame\cf0 :\cf3 CGRectMake\cf0 (\cf4 0.0\cf0 , \cf4 1.0\cf0 , \cf4 280\cf0 , \cf4 28\cf0 )];\
    [label \cf3 setBackgroundColor\cf0 :[\cf7 UIColor\cf0  \cf3 clearColor\cf0 ]];\
    [label \cf3 setText\cf0 :[\cf7 NSString\cf0  \cf3 stringWithFormat\cf0 :\cf8 @"%d"\cf0 , section]];\
    [headerView \cf3 addSubview\cf0 :label];\
    [label \cf3 release\cf0 ];\
\
    \cf7 UIImageView\cf0  *imageView = [[\cf7 UIImageView\cf0  \cf3 alloc\cf0 ] \cf3 initWithFrame\cf0 :\cf3 CGRectMake\cf0 (\cf4 280.0\cf0 , \cf4 10.0\cf0 , \cf4 10.0\cf0 , \cf4 10.0\cf0 )];\
    [imageView \cf3 setBackgroundColor\cf0 :[\cf7 UIColor\cf0  \cf3 clearColor\cf0 ]];\
    [imageView \cf3 setImage\cf0 :[\cf7 UIImage\cf0  \cf3 imageNamed\cf0 :\cf8 @"next.png"\cf0 ]];\
    \
    \cf6 BOOL\cf0  bFlag = [[qqView.\cf2 sectionDictionary\cf0  \cf3 objectForKey\cf0 :[\cf7 NSString\cf0  \cf3 stringWithFormat\cf0 :\cf8 @"SectionKey_%d"\cf0 , section]] \cf3 boolValue\cf0 ];\
    \cf6 if\cf0 (bFlag)\
    \{\
        \cf7 CGAffineTransform\cf0  transform = \cf3 CGAffineTransformMakeRotation\cf0 (\cf9 M_PI\cf0  / \cf4 2\cf0 );\
        \
        [imageView \cf3 setTransform\cf0 :transform];\
    \}\
    \
    [headerView \cf3 addSubview\cf0 :imageView];\
    [imageView \cf3 release\cf0 ];\
    \
    \cf10 // Line view\cf0 \
    \cf7 UIView\cf0  *lineView = [[\cf7 UIView\cf0  \cf3 alloc\cf0 ] \cf3 initWithFrame\cf0 :\cf3 CGRectMake\cf0 (\cf4 0.0\cf0 , \cf4 29.0\cf0 , \cf4 320\cf0 , \cf4 1\cf0 )];\
    [lineView \cf3 setBackgroundColor\cf0 :[\cf7 UIColor\cf0  \cf3 grayColor\cf0 ]];\
    [headerView \cf3 addSubview\cf0 :lineView];\
    [lineView \cf3 release\cf0 ];\
    \
    \cf6 return\cf0  headerView;\
\}\
\
- (\cf7 UITableViewCell\cf0  *)qqView:(\cf2 QQView\cf0  *)qqView \
                  tableView:(\cf7 UITableView\cf0  *)tableView \
      cellForRowAtIndexPath:(\cf7 NSIndexPath\cf0  *)indexPath\
\{\
    \cf6 static\cf0  \cf7 NSString\cf0  *cellIdentifier = \cf8 @"Cell"\cf0 ;\
    \
    \cf2 QQViewCell\cf0  *cell = (\cf2 QQViewCell\cf0  *)[tableView \cf3 dequeueReusableCellWithIdentifier\cf0 :cellIdentifier];\
    \
    \cf6 if\cf0 (cell == \cf6 nil\cf0 )\
    \{\
        cell = [[[\cf2 QQViewCell\cf0  \cf3 alloc\cf0 ] \cf3 initWithStyle\cf0 :\cf3 UITableViewCellStyleDefault\cf0 \
                                  \cf3 reuseIdentifier\cf0 :cellIdentifier] \cf3 autorelease\cf0 ];\
    \}\
    \
    \cf6 return\cf0  cell;\
\}\
\
- (\cf7 CGFloat\cf0 )qqView:(\cf2 QQView\cf0  *)qqView heightForRowAtIndexPath:(\cf7 NSIndexPath\cf0  *)indexPath\
\{\
    \cf6 return\cf0  \cf4 50.0\cf0 ;\
\}\
\
- (\cf7 CGFloat\cf0 )qqView:(\cf2 QQView\cf0  *)qqView heightForHeaderInSection:(\cf7 NSInteger\cf0 )section\
\{\
    \cf6 return\cf0  \cf4 30.0\cf0 ;\
\}}